Skip to content

Added missing flush() on error exit#75

Merged
sam701 merged 1 commit into
sam701:mainfrom
phatchman:flush_fix
Jun 11, 2026
Merged

Added missing flush() on error exit#75
sam701 merged 1 commit into
sam701:mainfrom
phatchman:flush_fix

Conversation

@phatchman

Copy link
Copy Markdown
Contributor

Fixes #74.

Printing the help text does a defer printer.flush(). When print_help_on_error = false no flush is performed before exit.

@sam701 sam701 merged commit dafd121 into sam701:main Jun 11, 2026
1 of 3 checks passed
@sam701

sam701 commented Jun 11, 2026

Copy link
Copy Markdown
Owner

@phatchman great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No error is shown when invalid command line option and app.help_config.print_help_on_error = false

2 participants